﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class AnalysisFinaceType : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
             //若是支出、收入分析，隐藏后退按钮
             string[] typeIDs = new string[]{"2","3"};
             if ( Request.QueryString["TypeID"] == null || Array.IndexOf(typeIDs, Request.QueryString["TypeID"]) != -1)
             {
                 this.divBack.Visible = false;
             }

             if (Request.QueryString["StartDate"] != null && Request.QueryString["StartDate"]!=String.Empty)
             {
                 this.txtStartTime.Text = Request.QueryString["StartDate"];
             }

             if (Request.QueryString["EndDate"] != null && Request.QueryString["EndDate"] != String.Empty)
             {
                 this.txtEndTime.Text = Request.QueryString["EndDate"];
             }

        }
    }
}
